/*
 * FontManager.fx
 *
 * Created on 2009-02-27, 15:08:54
 */

package pl.koziolekweb.prezentacja4developers;

import javafx.scene.text.Font;
import javafx.stage.Stage;

/**
 * @author bartlomiejk
 */

public class FontManager {
    
    var maxHeight: Float = bind Stage.stages[0].height;

    public function getSmallFont():Font{
        return Font{
            size: 0.02 * maxHeight
            name: "Arial"
        }
    }
    public function getNormalFont():Font{
        return Font{
            size: 0.04 * maxHeight
            name: "Arial"
        }
    }
    public function getBigFont():Font{
        return Font{
            size: 0.06 * maxHeight
            name: "Arial"
        }
    }

    public function getSmallFont(face:String):Font{
        return Font{
            size: 0.02 * maxHeight
            name: face
        }
    }
    public function getNormalFont(face:String):Font{
        return Font{
            size: 0.04 * maxHeight
            name: face
        }
    }
    public function getBigFont(face:String):Font{
        return Font{
            size: 0.06 * maxHeight
            name: face
        }
    }
}
